package com.eusoft.book_manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.eusoft.book_manage.entity.BasicEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 图书类型信息表
 * </p>
 *
 * @author eusoft
 * @since 2021-10-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BookType extends BasicEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 自增aid
     */
    @TableId(value = "aid", type = IdType.AUTO)
    private Integer aid;

    /**
     * 类型名称
     */
    private String name;

    /**
     * 父级类型aid
     */
    private Integer fatherAid;

    /**
     * 层级
     */
    private Integer level;


    /*以下为 非数据库映射字段*/
    /**
     * 类型是否被占用
     */
    @TableField(exist = false)
    private Boolean isDelete;


}
